package com.sqx.modules.sys.controller.app;

import com.sqx.common.utils.Result;
import com.sqx.modules.sys.service.SysDictService;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 数据字典
 *
 */
@RestController
@RequestMapping("/app/dict/")
public class AppDictController {
    @Autowired
    private SysDictService sysDictService;
    /**
     * 列表
     */
    @RequestMapping("/getDictList")
    public Result getDictList(@ApiParam("字典名称") String name){
       return Result.success().put("data", sysDictService.getDictList(name));

    }
}
